package com.currency.mall.di.modlue;

import com.currency.mall.ui.my.capital.CapitalDetailsContract;
import com.currency.mall.ui.my.capital.CapitalDetailsPresent;
import com.mifengs.commonbase.di.scope.ActivityScope;
import com.mifengs.commonbase.di.scope.FragmentScope;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2018/12/12.
 */
@Module
public class CapitalDetailsModule {

    public final CapitalDetailsContract.View mView;

    public CapitalDetailsModule(CapitalDetailsContract.View mView) {
        this.mView = mView;
    }

    @FragmentScope
    @Provides
    public CapitalDetailsPresent providePresenter() {
        return new CapitalDetailsPresent(mView);
    }

}
